home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Demos / DTP / HomePublisher Demo / AHP Pouch / AutoCreate / Business ID / _Business Card NewWave < prev    next >
Encoding:
Text File  |  1993-09-17  |  4.2 KB  |  172 lines  |  [SGPA/SCPG]

  1. on startup
  2. build
  3. end startup
  4.  
  5. on Build
  6. dodocsetup
  7. locatefonts
  8. newpublication pages 1 columns 0 PageWidth 594 PageHeight 841 pageorientation portrait topmargin 36 bottommargin 36 leftmargin 70 rightmargin 70
  9.  
  10. set displayinvisibles to false
  11. set facingpages to false
  12. set gridsnap to false
  13. set lockguides to false
  14. set magneticguides to true
  15. set printcoloroptions to false
  16. set printcolornames to true
  17. set printcutouts to true
  18. set printregistrationmarks to false
  19. set printmarksoptions to no
  20. set printpageoptions to all
  21. set printtypeoptions to publication
  22. set spotcolor 1 to 0,0,0
  23. set spotcolor 2 to 65535,65535,65535
  24. set spotcolor 3 to 62167,2134,34028
  25. set spotcolor 4 to 0,32768,4528
  26. set spotcolor 5 to 577,43860,60159
  27. set spotcolor 6 to 56683,2242,1698
  28. set spotcolor 7 to 0,0,54272
  29. set spotcolor 8 to 64512,62333,1327
  30. set linepattern to 1
  31. set fillpattern to 2
  32. set color to 1
  33. set framelinetype to 1
  34. set mousecursor to busy
  35. set mousecursor to busy
  36. goto rightbackground
  37. PublicationSetup columns 1
  38. set mousecursor to busy
  39. goto page 1
  40. -- •p1 1•
  41. draw Line 313,281,313,281
  42. set locked of last object to true
  43. -- •p1 2•
  44. draw Line 313,281,313,281
  45. set locked of last object to true
  46. -- •p1 3•
  47. draw Line 313,281,313,281
  48. set locked of last object to true
  49. -- •p1 4•
  50. draw Line 589,281,589,281
  51. set locked of last object to true
  52. -- •p1 5•
  53. draw Line 589,281,589,281
  54. set locked of last object to true
  55. -- •p1 6•
  56. draw Line 589,281,589,281
  57. set locked of last object to true
  58. -- •p1 7•
  59. draw Line 313,445,313,445
  60. set locked of last object to true
  61. -- •p1 8•
  62. draw Line 313,609,313,609
  63. set locked of last object to true
  64. -- •p1 9•
  65. draw Line 313,445,313,445
  66. set locked of last object to true
  67. -- •p1 10•
  68. draw Line 313,609,313,609
  69. set locked of last object to true
  70. -- •p1 11•
  71. draw Line 313,445,313,445
  72. set locked of last object to true
  73. -- •p1 12•
  74. draw Line 313,609,313,609
  75. set locked of last object to true
  76. -- •p1 13•
  77. draw Line 589,445,589,445
  78. set locked of last object to true
  79. -- •p1 14•
  80. draw Line 589,609,589,609
  81. set locked of last object to true
  82. -- •p1 15•
  83. draw Line 589,445,589,445
  84. set locked of last object to true
  85. -- •p1 16•
  86. draw Line 589,609,589,609
  87. set locked of last object to true
  88. -- •p1 17•
  89. draw Line 589,445,589,445
  90. set locked of last object to true
  91. -- •p1 18•
  92. draw Line 589,609,589,609
  93. set locked of last object to true
  94. -- •p1 19•
  95. draw Rectangle 41,74,135,138
  96. set rotationvalue of last object to 270
  97. set croprectangle of last object to 0,0,94,64
  98. -- •p1 20•
  99. open story "address 1"
  100. draw rectangle 140,22,278,191
  101. close story 
  102. set linepattern of last object to 0
  103. set rotationvalue of last object to 270
  104. set croprectangle of last object to 0,0,94,64
  105. set locked of last object to true
  106. -- •p1 21•
  107. draw Line 125,42,125,174
  108. -- •p1 22•
  109. draw Line 24,35,34,35
  110. -- •p1 23•
  111. draw Line 40,26,40,33
  112. -- •p1 24•
  113. draw Line 300,35,310,35
  114. -- •p1 25•
  115. draw Line 300,179,310,179
  116. -- •p1 26•
  117. draw Line 294,181,294,188
  118. -- •p1 27•
  119. draw Line 294,26,294,33
  120. -- •p1 28•
  121. draw Line 24,179,34,179
  122. -- •p1 29•
  123. draw Line 40,181,40,188
  124. PublicationSetup columns 1
  125. choose maintool
  126. progressdialog hide
  127. global usersOldMeasurement
  128. set measurements to usersOldMeasurement
  129. end Build
  130.  
  131.  
  132. on locatefonts
  133. global vHelvetica, vPalatino, vTimes, vNewYork, systemfonts
  134. put fontfamilies into systemfonts
  135. if systemfonts contains "New York" then put "New York"  into vNewYork
  136. else put "Geneva" into vNewYork
  137. if systemfonts contains "helvetica" then put "helvetica"  into vHelvetica
  138. else put "Geneva" into vHelvetica
  139. if systemfonts contains "Times" then put "Times" into vTimes
  140. else put vNewYork into vTimes
  141. if systemfonts contains "Palatino" then put "Palatino" into vPalatino
  142. else put vTimes into vPalatino
  143.  
  144. end locatefonts
  145.  
  146. on dodocsetup
  147. global usersOldMeasurement
  148. set lockscreen to true
  149. Set ShuffleTextObjects to false
  150. put measurements into usersOldMeasurement
  151. set measurements to points
  152. set displayguides to false
  153. set view to actual
  154. set itemdel to ","
  155. set worddel to space
  156. set linedel to cr
  157. set saveglobals to true
  158. progressdialog open
  159. progressdialog show "Creating publication"
  160. end dodocsetup
  161.  
  162. on textsetup thefont, theface, thesize, thejust
  163. global vHelvetica, vPalatino, vTimes, vNewYork
  164. set styleRecomposition to false
  165. set the textfont to value("v"&thefont)
  166. do "set the textface to "&theface
  167. set the textsize to thesize
  168. set the rulerjustification to thejust
  169. set styleRecomposition to true
  170. end textsetup
  171.  
  172.     F<BÏ